﻿@model HQPad.Models.RegisterModel

<h1>Register a new HQPad account</h1>
<section class="content">
    <div class="block">
        <p>Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.</p>
        <p>If you have an existing account on heroquest-larp.co.uk please use that login name.  
        <br />Although there is currently no integration between these two sites using the same login would greatly ease
        that integration in the future.</p>
    </div>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
        <fieldset class="form block form-wide-label">
            <legend>Register</legend>

        <div class="field-item">
            <div class="label">@Html.LabelFor(m => m.UserName)</div>
            @Html.TextBoxFor(m => m.UserName)
            @Html.ValidationMessageFor(m => m.UserName)
        </div>

        <div class="field-item">
            <div class="label">@Html.LabelFor(m => m.Email)</div>
            @Html.TextBoxFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>

        <div class="field-item">
            <div class="label">@Html.LabelFor(m => m.Password)</div>
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>

        <div class="field-item">
            <div class="label">@Html.LabelFor(m => m.ConfirmPassword)</div>
            @Html.PasswordFor(m => m.ConfirmPassword)
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>

        <input type="submit" value="Register" />
    </fieldset>
}

</section>